package com.flowcloud.websocket;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @ClassName WebsocketConfiguration
 * @Description 配置websocket服务，在springboot项目启动的时候可以
 * 自动装载 ServerEndpointExporter
 * @Author yinpan
 * @Date 2020/8/24 09:59
 * @Version V1.0
 */
@Configuration
public class WebsocketConfiguration {

    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
